import React from 'react'
import ReactDOM from 'react-dom'

class LoginCom extends React.Component {
  constructor(props) {
    super(props);
    this.state = { login: 'hello' };
  }
  render() {
    const isLogin = this.state.login;
    return (
      <div>
        Tom is <b>{ isLogin ? 'a' : 'not'}</b> teacher
      </div>
    )
  }
}

ReactDOM.render(
  <LoginCom />,
  document.getElementById('root')
)